package com.hualan.controller;

import com.hualan.service.CourseMarkServicecui;
import com.hualan.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/coursemark")
public class CourseMarkControllercui {
    @Autowired
    private CourseMarkServicecui courseMarkService;

    //查询所有评论条数
    @GetMapping("/AllCourseMarks")
    public R AllCourseMarks(){
        return R.success(courseMarkService.AllCourseMarks());
    }

    //查询所有评论
    @GetMapping("/findAllCourseMark")
    public R findAllCourseMark(){
        return R.success(courseMarkService.findAllCourseMark());
    }

}
